#-*- coding:utf-8 -*-
try:
    import pytesseract
    from PIL import Image
except ImportError:
    print ("Import Error !")
    raise  SystemExit

tessdata_dir_config = '--tessdata-dir "D:\\Tesseract-OCR\\tessdata"'
img=Image.open("image.png")
vcode= pytesseract.image_to_string(img,config=tessdata_dir_config)
print (vcode)